/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-25 21:12:01  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.bp.service;

import java.util.List;

import com.joysuch.wwyt.bp.bean.BpAccidentCorrectiveMeasureDetailBean;
import com.joysuch.wwyt.bp.bean.BpAccidentCorrectiveMeasureEditBean;
import com.joysuch.wwyt.bp.bean.BpAccidentCorrectiveMeasureListBean;
import com.joysuch.wwyt.bp.bean.BpAccidentCorrectiveMeasureListBean.SearchBpAccidentCorrectiveMeasure;
import com.joysuch.wwyt.bp.entity.BpAccidentCorrectiveMeasure;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpAccidentCorrectiveMeasureService {

    public BpAccidentCorrectiveMeasure add(BpAccidentCorrectiveMeasureEditBean entity);

    void update(BpAccidentCorrectiveMeasureEditBean entity);

    Page<BpAccidentCorrectiveMeasureListBean> findByPage(Pageable page, SearchBpAccidentCorrectiveMeasure condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpAccidentCorrectiveMeasureDetailBean getById(Long id);

    BpAccidentCorrectiveMeasure findById(Long id);

    public List<BpAccidentCorrectiveMeasureDetailBean> queryDetailList(Long id);

    public void deleteByAccidentId(Long id);

    public void deleteByAccidentIdExcludeIds(Long id, List<Long> existingIds);

    public void saveAll(List<BpAccidentCorrectiveMeasure> measures);
}
